// 6_10.c Character Processing Functions
#include <stdio.h>
#include <ctype.h>
int main()
{
    char inChar;

    do
    {
        printf("\nPush any key (type an x to stop) ");
        inChar = getchar();       /*get the next character typed*/
        inChar = tolower(inChar); /*conver to lowercase*/
        getchar();                /*get and ignore the ENTER key*/

        if (isalpha(inChar)) /*a nonzero value is true in C*/
            printf("\nThe character entered is a letter.\n");
        else if (isdigit(inChar))
            printf("\nThe character entered is a digit.\n");

    } while (inChar != 'x');

    return 0;
}
